﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>@ViewBag.Title @ViewBag.IsAuthenticated - Fly社区</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="fly,layui,前端社区">
    <meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
    @Styles.Render("~/Content/reslayui")
</head>
<body>
    <div class="fly-header layui-bg-black">
        <div class="layui-container">
            <a class="fly-logo" href="/">
                <img src="~/Content/res/images/logo.png" alt="layui">
            </a>
            <ul class="layui-nav fly-nav layui-hide-xs">
                <li class="layui-nav-item layui-this">
                    <a href="/"><i class="iconfont icon-jiaoliu"></i>用户管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="case/case.html"><i class="iconfont icon-iconmingxinganli"></i>系统管理</a>
                </li>
            </ul>

            <ul class="layui-nav fly-nav-user">

                @if (HttpContext.Current.User.Identity.IsAuthenticated)
                {
                    <!-- 登入后的状态 -->
                    Html.RenderAction("HeaderERPLogIn");
                }
            </ul>
        </div>
    </div>
    <div class="layui-container fly-marginTop fly-user-main">
        <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
            <li class="layui-nav-item">
                <a href="home.html">
                    <i class="layui-icon">&#xe612;</i>
                    用户管理
                </a>
            </li>
            <li class="layui-nav-item layui-nav-itemed">
                <a href="javascript:;">
                    <i class="layui-icon">&#xe620;</i>
                    系统管理
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="@Url.Action("UserIndex")" >用户管理</a></dd>
                    <dd><a href="@Url.Action("RoleIndex")" >角色管理</a></dd>
                    <dd><a href="@Url.Action("NodesIndex")">社区节点</a></dd>
                    <dd><a href="@Url.Action("PageIndex")" >页面管理</a></dd>
                </dl>
            </li>
        </ul>

        <div class="fly-panel fly-panel-user" pad20>
            @RenderBody()
        </div>
    </div>

    <div class="fly-footer">
        <p><a href="http://fly.layui.com/" target="_blank">Fly社区</a> @DateTime.Now.ToString("yyyy") &copy; <a href="http://www.layui.com/" target="_blank">layui.com 出品</a></p>
        <p>
            <a href="http://fly.layui.com/jie/3147/" target="_blank">付费计划</a>
            <a href="http://www.layui.com/template/fly/" target="_blank">获取Fly社区模版</a>
            <a href="http://fly.layui.com/jie/2461/" target="_blank">微信公众号</a>
        </p>
    </div>

        @Scripts.Render("~/bundles/jquery")
        @Scripts.Render("~/bundles/jqueryval")
        @Scripts.Render("~/bundles/reslayui")
        <script>
            layui.config({
                base: "~/Content/res/mods/"
            }).use(['element'], function () {
                var $ = layui.$
                    , element = layui.element

                //$('.layui-nav-child dd a').click(function () {
                //    $.ajax({
                //        url: $(this).attr('href'),
                //        type: "GET",
                //        success: function (response) {
                //            $('.fly-panel-user').html(response);
                //        }
                //    });
                //    return false;
                //});
            });
        </script>
        @RenderSection("scripts", required: false)
</body>
</html>
